package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.mapper;

import com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.entities.FlowEventException;
import com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.entities.FlowEventExceptionExample;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
　　* @description: 流程事件异常DAO处理接口
　　* @author shenrm
　　* @date 2022/5/9 18:11
　　*/
public interface FlowEventExceptionDAO {

    /**
     * 插入异常对象信息
     *
     * @param record
     * @return
     */
    int insert(FlowEventException record);

    /**
     * 分页查询数据
     *
     * @param example
     * @return
     */
    List<FlowEventException> selectByExample(FlowEventExceptionExample example);

    /**
     * 更新字段
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(FlowEventException record);

    /**
     * 根据id查询异常信息记录
     * @param id
     * @return
     */
    FlowEventException selectById(@Param("id") int id);
}